

export function getTypeList(data){
	 return new Promise((resolve, reject) => {  
		return uni.request({
		  url: 'imgStore/openApi/getTypeList', // 接口地址
		  method: 'get', // 请求方法
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err)
		  }
		});
	});
}

export function search(data){
	return new Promise((resolve, reject) => {  
		uni.request({
		  url: 'imgStore/openApi/search', 
		  method: 'GET', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err);
		  }
		})
	})
}

export function searchHostList(data){
	return new Promise((resolve, reject) => {  
		uni.request({
		  url: 'imgStore/openApi/searchHostList', 
		  method: 'GET', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err);
		  }
		})
	})
}


export function getFileViewUrlByBussIds(data){
	return new Promise((resolve, reject) => {  
		uni.request({
		  url: 'imgStore/openApi/getFileViewUrlByBussIds', 
		  method: 'GET', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err);
		  }
		})
	})
}
